
/** 窗口类型 */
export enum WindowType {
    /** 大厅 */
    eMap = 1,
    /** 窗口 */
    eView,
    /** 弹窗 */
    eTips,
    /** 跑马灯 */
    eMarquee,
    /** 飘字 */
    eToast,
    eNetwork,
}

/** 窗口打开类型 */
export enum WindowOpenType {
    /** 只能展示这个，立即打开 */
    eSingle = 1,
    /** 可以多个同时存在，一个关闭另一个再打开 */
    eMultiple,
}

//-----------------------------------------游戏
/** 语言 */
export const enum Language {
    /** 阿拉伯 */
    Arabic = "ar",
    /** 英语 */
    English = "en",
    /** 西班牙 */
    Espanol = "es",
    /** 印度尼西亚 */
    Indonesia = "Id",
    /** 日本 */
    Japanese = "ja",
    /** 葡萄牙 */
    Portuguese = "pt",
    /** 泰国 */
    Thailand = "th",
    /** 越南 */
    Vietnamese = "vi",
    /** 中文 */
    Chinese = "zh_CN",
    /**  台湾 */
    Taiwan = "zh_TW"
}

/** 语言枚举 */
export const LanguageText = {
    "0": "阿拉伯语",
    "1": "英语",
    "2": "西班牙语",
    "3": "印度尼西亚语",
    "4": "日语",
    "5": "葡萄牙语",
    "6": "泰语",
    "7": "越语",
    "8": "简体中文",
    "9": "繁体中文"
}


/** 游戏运行环境 */
export enum PlatFormType {
    android = 1,
    ios,
    web,
}

/** 分享 */
export interface ShareInfo {
    /** 0:链接，1:图片 */
    type: number;
    /** 链接地址 */
    url: string;
    /** 图片地址 */
    imgPath: string;
}



/** 方块的颜色配置 */
export enum BlockColor {
    /** 蓝色 */
    blue = "#288df7",
    /** 红色 */
    red = "#bf4c3d",
    /** 黄色 */
    yellow = "#f7ce28",
    /** 绿色 */
    green = "#4cc74b"
}

export enum AudioName {
    skill_toy_mouse = "skill_toy_mouse",
    change_model_lrd = "change_model_lrd",
    clear_row = "clear_row",
    game_end_count_down = "game_end_count_down",
    game_over = "game_over",
    game_start_count_down = "game_start_count_down",
    quick_drop = "quick_drop",
    skill_broom = "skill_broom",
    skill_decline_fast = "skill_decline_fast",
    skill_firework = "skill_firework",
    skill_flashlight = "skill_flashlight",
    skill_rocket_rush = "skill_rocket_rush",
    skill_spirit_master = "skill_spirit_master",
    skill_stop_rotate = "skill_stop_rotate",
    skill_super_double = "skill_super_double",
    skill_team_queue = "skill_team_queue"
}

/** 玩家数据 */
export interface UserData {
    id?: string,
    roomId?: string,
    name?: string,
    avatar_url?: string,
    model?: number,
    type?: number,
    seatId?: number
}


/** 排行数据 */
export interface RankData {
    star?: number,
    id?: number,
    icon?: string,
    name?: string,
    rank?: number
}
